package top.lshaci.learning.hutool;

import java.util.HashMap;
import java.util.Map;

/**
 * HttpRequestTest
 *
 * @author lshaci
 * @since 1.0.0
 */
public class HttpRequestTest {
    static Map<String, Object> param = new HashMap<>();
    static String url = "http://inputvat.aisino.net:8084/invplatform/invoice/check/singleton";

    static {
        param.put("appcode", "xyg8iR2j1stH0VhS5+b5+DXuMxfC1Yiq/O6vgLS7Ao4=");
        param.put("nsrsbh", "915101073431567010");

    }

    public static void main(String[] args) {
//        Map<String, Object> data = new HashMap<>();
//        data.put("fpdm", "051001700111");
//        data.put("fphm", "11904891");
//        data.put("kprq", "20180416");
//        data.put("je", "596.58");
//        data.put("jym", "163342");
//        param.put("data", data);
//        HttpResponse response = HttpRequest.post(url).body(JSONUtil.toJsonStr(param)).execute();
//        System.err.println(response.body());
//        String resp = HttpUtil.post(url, JSONUtil.toJsonStr(param));
//        System.err.println(resp);

        String str1 = new StringBuilder("计算机").append("软件").toString();
        System.out.println(str1.intern() == str1);

        String str2 = new StringBuilder("ja").append("va").toString();
        System.out.println(str2.intern() == str2);
    }
}
